package com.example.memoriesfall.handlemessage;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.ProgressBar;
import android.os.Handler;

public class MainActivity extends AppCompatActivity {

    ProgressBar bar = null;
    Button Start = null;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        bar = (ProgressBar)findViewById(R.id.Pbar);
        Start = (Button)findViewById(R.id.B1);
        Start.setOnClickListener(new ButtonListener());

    }

    class ButtonListener implements View.OnClickListener{

        @Override
        public void onClick(View v) {
            bar.setVisibility(View.VISIBLE);


        }
    }

    Handler updateBarHandler.post()
}
